# -*- coding: utf-8 -*-
"""
# @Time    : 2021/1/6 下午4:08
# @Author  : tgy

函数作为一个对象，拥有对象模型的通用属性：id,类型和值。

"""

def test02():
    print('test02')


def test03():
    print('test02')

    x = 10
    funcs = []
    for i in range(4):
        def inner(y):
            k = i * y
            print(k)
        funcs.append(inner)

    funcs[0](1)

def test01():
    ...
    functions = (test02, test03)
    functions[1]()

    print(id(test03))
    print(type(test03))
    print(test03)



if __name__ == '__main__':
    ...
    test03()